package view;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;

public class MenuStatisticPanel extends JPanel {
    private JButton btnWeek;
    private JButton btnMonth;
    private JButton btnQuarterly;
    private JToolBar toolbarStatistic;
	private static final long serialVersionUID = 1L;
	
	@SuppressWarnings("unused")
	private Home home;
	public MenuStatisticPanel(Home home) {
		this.home = home;
        initComponents();
    }
    private void initComponents() {

        toolbarStatistic = new JToolBar();
        btnMonth = new JButton();
        btnWeek = new JButton();
        btnQuarterly = new JButton();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(null);

        toolbarStatistic.setFloatable(false);
        toolbarStatistic.setOrientation(SwingConstants.VERTICAL);
        toolbarStatistic.setRollover(true);
        toolbarStatistic.setOpaque(false);

        btnMonth.setFont(new java.awt.Font("Calibri", 1, 18)); 
        btnMonth.setIcon(new ImageIcon("icon/charticon.png")); 
        btnMonth.setText("  Month  ");
        btnMonth.setFocusable(false);
        btnMonth.setHorizontalTextPosition(SwingConstants.CENTER);
        btnMonth.setOpaque(false);
        btnMonth.setVerticalTextPosition(SwingConstants.BOTTOM);
        toolbarStatistic.add(btnMonth);

        btnWeek.setFont(new java.awt.Font("Calibri", 1, 18)); 
        btnWeek.setIcon(new ImageIcon("icon/charticon.png")); 
        btnWeek.setText("   Week   ");
        btnWeek.setFocusable(false);
        btnWeek.setHorizontalTextPosition(SwingConstants.CENTER);
        btnWeek.setOpaque(false);
        btnWeek.setVerticalTextPosition(SwingConstants.BOTTOM);
        toolbarStatistic.add(btnWeek);

        btnQuarterly.setFont(new java.awt.Font("Calibri", 1, 18)); 
        btnQuarterly.setIcon(new ImageIcon("icon/charticon.png")); 
        btnQuarterly.setText("Quarterly");
        btnQuarterly.setFocusable(false);
        btnQuarterly.setHorizontalTextPosition(SwingConstants.CENTER);
        btnQuarterly.setOpaque(false);
        btnQuarterly.setVerticalTextPosition(SwingConstants.BOTTOM);
        toolbarStatistic.add(btnQuarterly);

        add(toolbarStatistic);
        toolbarStatistic.setBounds(60, 60, 80, 220);
    }
}
